﻿<cfsilent>
	<cfscript>
	
		sql = "SELECT a.institute_id,
					   a.institute_name,
					   a.institute_english
				FROM t_institute a 
				WHERE a.classification = '1' 
				ORDER BY a.institute_name";
		queryObj = new Query( datasource=application.dnsSlave ); 
		rs_ins= queryObj.execute( sql=sql ).getResult();
		
		sql = "SELECT a.institute_id,
					   a.institute_name,
					   a.institute_english
				FROM t_institute a 
				WHERE a.classification = '3' 
				ORDER BY a.institute_name";
		queryObj = new Query( datasource=application.dnsSlave ); 
		rs_dep= queryObj.execute( sql=sql ).getResult();
		
		sql = "SELECT a.institute_id,
					   a.institute_name,
					   a.institute_english
				FROM t_institute a 
				WHERE a.classification not in ('1','3') 
				ORDER BY a.institute_name";
		queryObj = new Query( datasource=application.dnsSlave ); 
		rs_other= queryObj.execute( sql=sql ).getResult();

		event.setArg("pageTitle", "教学运行基础数据 - 行政建制");

		targetArgs = structNew();

	</cfscript>
</cfsilent>

<div id="headArea">
	<div class="uiHeader uiHeaderWithImage ptm">
		<div class="clearfix uiHeaderTop">
			<div class="uiHeaderActions rfloat">
				<a class="uiButton" href="<cfoutput>#buildURL('schoolModify')#</cfoutput>"><i class="mrs img btnPublish"></i><span class="uiButtonText">设置学校信息</span></a>
			</div>
			<div>
				<h2 class="uiHeaderTitle">
					<i class="uiHeaderImage img icon16x16 link"></i>管理部门信息
				</h2>
			</div>
		</div>
	</div>
</div>

<div class="UIElement">
	<ul class="senateFirstPage">
		<li>
			<div class="clearfix" id="administration">
				<div class="UItab">
					<div class="tabLables">
						<span class="active" id="labInstitute" tabTarget="Institute">二级学院(系)部及教辅部门</span>
						<span id="labDepartment" tabTarget="Department">其他校内非教学单位</span>
					</div>
				</div>
				<script language="javascript" type="text/javascript">
					//<![CDATA[
					<!--
					$(document).ready(function() {
						
						/* init Tab */
						$("div.tabContent").hide();
						$("div#" + $("div.tabLables span.active").attr("tabTarget")).show();
						
						$("div.tabLables > span").click(function(){
							var $targetID = $(this).attr("tabTarget");
							
							$("div.tabLables span").removeClass("active");
							$(this).addClass("active");
							
							$("div.tabContent").not('[id="' + $targetID + '"]').hide();
							$("div.tabContent#" + $targetID).show();
						});
						
					});
					// -->
					//]]>				
				</script>
			</div>
			
			<div id="Institute" class="tabContent">
				
				<div class="noticeBlock">
					<h3>二级院(系)</h3>
					<p><span class="img icon16x16 message"></span>这里列出所有承担教学任务的校内学院, 同时这些院系设有学生工作系统, 承担学生日常管理工作</p>
					<hr/>
				</div>
				
				<div class="clearfix">
					<div class="UICardTable">
                        <cfloop query="rs_ins" >	
							<cfset structInsert(targetArgs, "DepID", rs_ins.institute_id, true) />
							<dl>
								<dt>
									<a href="<cfoutput>#buildURL('instituteSetting', targetArgs)#</cfoutput>">
									<b class="school"><!--imgholder--></b>
									<dd>
										<h3><cfoutput>#rs_ins.institute_name#</cfoutput></h3>
										<p><cfoutput>#rs_ins.institute_english#</cfoutput></p>
									</dd>
									</a>
								</dt>
							</dl>
						</cfloop>
					</div>
				</div>
				
				<div class="noticeBlock">
					<h3>教辅部门</h3>
					<p><span class="img icon16x16 message"></span>教辅单位不承担学生生活管理工作, 也没有设置招生专业. 仅仅承担相关课程的教学工作.</p>
					<hr/>
				</div>
				
				<div class="clearfix">
					<div class="UICardTable">
                        <cfloop query="rs_dep" >	
							<cfset structInsert(targetArgs, "DepID", rs_dep.institute_id, true) />
							<dl>
								<dt>
									<a href="<cfoutput>#buildURL('departmentSetting', targetArgs)#</cfoutput>">
									<b class="depart"><!--imgholder--></b>
									<dd>
										<h3><cfoutput>#rs_dep.institute_name#</cfoutput></h3>
										<p><cfoutput>#rs_dep.institute_english#</cfoutput></p>
									</dd>
									</a>
								</dt>
							</dl>
						</cfloop>
					</div>
				</div>	
			
			</div>

			<div id="Department" class="tabContent">
				
				<div class="noticeBlock">
					<h3>学校其他部门</h3>
					<p><span class="img icon16x16 message"></span>其他没有参与学校教学管理工作的部门.</p>
					<hr/>
				</div>
				
				<div class="clearfix">
					<div class="UICardTable">
                        <cfloop query="rs_other" >
							<cfset structInsert(targetArgs, "DepID", rs_other.institute_id, true) />
							<dl>
								<dt>
									<a href="<cfoutput>#buildURL('departmentOtherSetting', targetArgs)#</cfoutput>">
									<em><!--imgholder--></em>
									<dd>
										<h3><cfoutput>#rs_other.institute_name#</cfoutput></h3>
										<p><cfoutput>#rs_other.institute_english#</cfoutput></p>
									</dd>
									</a>
								</dt>
							</dl>
						</cfloop>
					</div>
				</div>	
				
			</div>
			
			
		</li>
	</ul>
</div>

